package com.hk.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hk.domain.Clue;
import com.hk.domain.Contract;
import com.hk.dto.ContractCXDto;
import com.hk.vo.ClueBusinContractVo;
import com.hk.vo.ContractCxVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDateTime;

@Mapper
public interface ContractMapper extends BaseMapper<Contract> {
    /** 获取折扣信息 */
    int selDiscountByActId(Integer activityId);
    /** 获取优惠券信息 */
    int selVouchersByActId(Integer activityId);

    Integer getContractCount(LocalDateTime beginTime, LocalDateTime endTime);

    IPage<ContractCxVo> selectALL(@Param("page") Page<Clue> cluePage,@Param("dto") ContractCXDto cxDto);
}
